local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1, L29_1, L30_1, L31_1, L32_1, L33_1, L34_1, L35_1, L36_1, L37_1, L38_1, L39_1
L0_1 = {}
L0_1.group_id = 247005026
L1_1 = 247005026
L2_1 = 26001
L3_1 = 26004
L4_1 = {}
L5_1 = 26001
L6_1 = 26036
L4_1[1] = L5_1
L4_1[2] = L6_1
L5_1 = {}
monsters = L5_1
L5_1 = {}
npcs = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 26001
L6_1.gadget_id = 70211111
L7_1 = {}
L7_1.x = 160.564
L7_1.y = -0.698
L7_1.z = 160.273
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 270.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L6_1.chest_drop_id = 21600009
L6_1.drop_count = 1
L6_1.isOneoff = true
L6_1.persistent = true
L7_1 = {}
L7_1.config_id = 26002
L7_1.gadget_id = 70310125
L8_1 = {}
L8_1.x = 180.0
L8_1.y = 0.114
L8_1.z = 160.0
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 90.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L8_1 = {}
L8_1.config_id = 26003
L8_1.gadget_id = 70310125
L9_1 = {}
L9_1.x = 160.0
L9_1.y = 0.114
L9_1.z = 140.0
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 180.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L9_1 = {}
L9_1.config_id = 26005
L9_1.gadget_id = 70310132
L10_1 = {}
L10_1.x = 158.823
L10_1.y = -0.7
L10_1.z = 163.033
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 340.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L10_1 = {}
L10_1.config_id = 26006
L10_1.gadget_id = 70310133
L11_1 = {}
L11_1.x = 162.552
L11_1.y = -0.7
L11_1.z = 159.139
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 110.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L11_1 = {}
L11_1.config_id = 26007
L11_1.gadget_id = 70310132
L12_1 = {}
L12_1.x = 158.798
L12_1.y = -0.7
L12_1.z = 157.607
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 200.0
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L12_1 = {}
L12_1.config_id = 26008
L12_1.gadget_id = 70310133
L13_1 = {}
L13_1.x = 157.297
L13_1.y = -0.7
L13_1.z = 161.383
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 290.0
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L13_1 = {}
L13_1.config_id = 26009
L13_1.gadget_id = 70310132
L14_1 = {}
L14_1.x = 159.034
L14_1.y = -0.7
L14_1.z = 168.41
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 340.0
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 1
L14_1 = {}
L14_1.config_id = 26010
L14_1.gadget_id = 70310133
L15_1 = {}
L15_1.x = 161.296
L15_1.y = -0.7
L15_1.z = 168.387
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 20.0
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L15_1 = {}
L15_1.config_id = 26011
L15_1.gadget_id = 70310132
L16_1 = {}
L16_1.x = 158.798
L16_1.y = -0.7
L16_1.z = 164.999
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 200.0
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L16_1 = {}
L16_1.config_id = 26012
L16_1.gadget_id = 70310133
L17_1 = {}
L17_1.x = 161.07
L17_1.y = -0.7
L17_1.z = 164.989
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 160.0
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 1
L17_1 = {}
L17_1.config_id = 26013
L17_1.gadget_id = 70310132
L18_1 = {}
L18_1.x = 158.837
L18_1.y = -0.7
L18_1.z = 155.363
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 340.0
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
L18_1 = {}
L18_1.config_id = 26014
L18_1.gadget_id = 70310133
L19_1 = {}
L19_1.x = 161.134
L19_1.y = -0.7
L19_1.z = 155.353
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 0.0
L19_1.y = 20.0
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 1
L19_1 = {}
L19_1.config_id = 26015
L19_1.gadget_id = 70310132
L20_1 = {}
L20_1.x = 161.098
L20_1.y = -0.7
L20_1.z = 151.703
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 0.0
L20_1.y = 160.0
L20_1.z = 0.0
L19_1.rot = L20_1
L19_1.level = 1
L20_1 = {}
L20_1.config_id = 26016
L20_1.gadget_id = 70310133
L21_1 = {}
L21_1.x = 158.899
L21_1.y = -0.7
L21_1.z = 151.713
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 0.0
L21_1.y = 200.0
L21_1.z = 0.0
L20_1.rot = L21_1
L20_1.level = 1
L21_1 = {}
L21_1.config_id = 26019
L21_1.gadget_id = 70310154
L22_1 = {}
L22_1.x = 145.356
L22_1.y = 0.597
L22_1.z = 166.449
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 0.0
L22_1.y = 90.0
L22_1.z = 0.0
L21_1.rot = L22_1
L21_1.level = 1
L22_1 = {}
L22_1.config_id = 26020
L22_1.gadget_id = 70360291
L23_1 = {}
L23_1.x = 174.281
L23_1.y = 0.597
L23_1.z = 166.449
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 0.0
L23_1.y = 90.0
L23_1.z = 0.0
L22_1.rot = L23_1
L22_1.level = 1
L23_1 = {}
L23_1.config_id = 26021
L23_1.gadget_id = 70310154
L24_1 = {}
L24_1.x = 145.356
L24_1.y = 0.597
L24_1.z = 153.623
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 0.0
L24_1.y = 90.0
L24_1.z = 0.0
L23_1.rot = L24_1
L23_1.level = 1
L24_1 = {}
L24_1.config_id = 26022
L24_1.gadget_id = 70360291
L25_1 = {}
L25_1.x = 174.281
L25_1.y = 0.597
L25_1.z = 153.623
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 0.0
L25_1.y = 90.0
L25_1.z = 0.0
L24_1.rot = L25_1
L24_1.level = 1
L25_1 = {}
L25_1.config_id = 26023
L25_1.gadget_id = 70310146
L26_1 = {}
L26_1.x = 160.05
L26_1.y = -0.659
L26_1.z = 153.508
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 0.0
L26_1.y = 0.0
L26_1.z = 0.0
L25_1.rot = L26_1
L25_1.level = 1
L25_1.chest_drop_id = 21600007
L25_1.drop_count = 1
L25_1.isOneoff = true
L25_1.persistent = true
L26_1 = {}
L26_1.config_id = 26024
L26_1.gadget_id = 70310146
L27_1 = {}
L27_1.x = 160.05
L27_1.y = -0.659
L27_1.z = 166.677
L26_1.pos = L27_1
L27_1 = {}
L27_1.x = 0.0
L27_1.y = 0.0
L27_1.z = 0.0
L26_1.rot = L27_1
L26_1.level = 1
L26_1.chest_drop_id = 21600007
L26_1.drop_count = 1
L26_1.isOneoff = true
L26_1.persistent = true
L27_1 = {}
L27_1.config_id = 26025
L27_1.gadget_id = 70310125
L28_1 = {}
L28_1.x = 140.0
L28_1.y = 0.114
L28_1.z = 160.0
L27_1.pos = L28_1
L28_1 = {}
L28_1.x = 0.0
L28_1.y = 90.0
L28_1.z = 0.0
L27_1.rot = L28_1
L27_1.level = 1
L28_1 = GadgetState
L28_1 = L28_1.GearStart
L27_1.state = L28_1
L28_1 = {}
L28_1.config_id = 26026
L28_1.gadget_id = 70310125
L29_1 = {}
L29_1.x = 160.0
L29_1.y = 0.114
L29_1.z = 180.0
L28_1.pos = L29_1
L29_1 = {}
L29_1.x = 0.0
L29_1.y = 180.0
L29_1.z = 0.0
L28_1.rot = L29_1
L28_1.level = 1
L29_1 = GadgetState
L29_1 = L29_1.GearStart
L28_1.state = L29_1
L29_1 = {}
L29_1.config_id = 26027
L29_1.gadget_id = 70310132
L30_1 = {}
L30_1.x = 161.039
L30_1.y = -0.688
L30_1.z = 163.033
L29_1.pos = L30_1
L30_1 = {}
L30_1.x = 0.0
L30_1.y = 20.0
L30_1.z = 0.0
L29_1.rot = L30_1
L29_1.level = 1
L30_1 = {}
L30_1.config_id = 26028
L30_1.gadget_id = 70310133
L31_1 = {}
L31_1.x = 162.58
L31_1.y = -0.7
L31_1.z = 161.423
L30_1.pos = L31_1
L31_1 = {}
L31_1.x = 0.0
L31_1.y = 70.0
L31_1.z = 0.0
L30_1.rot = L31_1
L30_1.level = 1
L31_1 = {}
L31_1.config_id = 26029
L31_1.gadget_id = 70310132
L32_1 = {}
L32_1.x = 161.012
L32_1.y = -0.7
L32_1.z = 157.592
L31_1.pos = L32_1
L32_1 = {}
L32_1.x = 0.0
L32_1.y = 160.0
L32_1.z = 0.0
L31_1.rot = L32_1
L31_1.level = 1
L32_1 = {}
L32_1.config_id = 26030
L32_1.gadget_id = 70310133
L33_1 = {}
L33_1.x = 157.288
L33_1.y = -0.678
L33_1.z = 159.185
L32_1.pos = L33_1
L33_1 = {}
L33_1.x = 0.0
L33_1.y = 250.0
L33_1.z = 0.0
L32_1.rot = L33_1
L32_1.level = 1
L33_1 = {}
L33_1.config_id = 26032
L33_1.gadget_id = 70310154
L34_1 = {}
L34_1.x = 153.164
L34_1.y = 8.603
L34_1.z = 160.06
L33_1.pos = L34_1
L34_1 = {}
L34_1.x = 56.0
L34_1.y = 90.0
L34_1.z = 0.0
L33_1.rot = L34_1
L33_1.level = 1
L34_1 = {}
L34_1.config_id = 26033
L34_1.gadget_id = 70310154
L35_1 = {}
L35_1.x = 153.164
L35_1.y = 8.603
L35_1.z = 160.899
L34_1.pos = L35_1
L35_1 = {}
L35_1.x = 52.0
L35_1.y = 90.0
L35_1.z = 0.0
L34_1.rot = L35_1
L34_1.level = 1
L35_1 = {}
L35_1.config_id = 26034
L35_1.gadget_id = 70310154
L36_1 = {}
L36_1.x = 153.164
L36_1.y = 8.603
L36_1.z = 159.182
L35_1.pos = L36_1
L36_1 = {}
L36_1.x = 52.0
L36_1.y = 90.0
L36_1.z = 0.0
L35_1.rot = L36_1
L35_1.level = 1
L36_1 = {}
L36_1.config_id = 26035
L36_1.gadget_id = 70360291
L37_1 = {}
L37_1.x = 160.714
L37_1.y = -1.9
L37_1.z = 160.0
L36_1.pos = L37_1
L37_1 = {}
L37_1.x = 90.0
L37_1.y = 0.0
L37_1.z = 0.0
L36_1.rot = L37_1
L36_1.level = 1
L37_1 = {}
L37_1.config_id = 26036
L37_1.gadget_id = 70211111
L38_1 = {}
L38_1.x = 159.449
L38_1.y = -0.677
L38_1.z = 160.273
L37_1.pos = L38_1
L38_1 = {}
L38_1.x = 0.0
L38_1.y = 90.0
L38_1.z = 0.0
L37_1.rot = L38_1
L37_1.level = 1
L37_1.chest_drop_id = 21600009
L37_1.drop_count = 1
L37_1.isOneoff = true
L37_1.persistent = true
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
L5_1[6] = L11_1
L5_1[7] = L12_1
L5_1[8] = L13_1
L5_1[9] = L14_1
L5_1[10] = L15_1
L5_1[11] = L16_1
L5_1[12] = L17_1
L5_1[13] = L18_1
L5_1[14] = L19_1
L5_1[15] = L20_1
L5_1[16] = L21_1
L5_1[17] = L22_1
L5_1[18] = L23_1
L5_1[19] = L24_1
L5_1[20] = L25_1
L5_1[21] = L26_1
L5_1[22] = L27_1
L5_1[23] = L28_1
L5_1[24] = L29_1
L5_1[25] = L30_1
L5_1[26] = L31_1
L5_1[27] = L32_1
L5_1[28] = L33_1
L5_1[29] = L34_1
L5_1[30] = L35_1
L5_1[31] = L36_1
L5_1[32] = L37_1
gadgets = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 26004
L7_1 = RegionShape
L7_1 = L7_1.CUBIC
L6_1.shape = L7_1
L7_1 = {}
L7_1.x = 40.0
L7_1.y = 25.0
L7_1.z = 40.0
L6_1.size = L7_1
L7_1 = {}
L7_1.x = 160.0
L7_1.y = -0.7
L7_1.z = 160.0
L6_1.pos = L7_1
L7_1 = {}
L7_1.config_id = 26017
L8_1 = RegionShape
L8_1 = L8_1.SPHERE
L7_1.shape = L8_1
L7_1.radius = 2
L8_1 = {}
L8_1.x = 160.032
L8_1.y = -0.7
L8_1.z = 153.569
L7_1.pos = L8_1
L8_1 = {}
L8_1.config_id = 26018
L9_1 = RegionShape
L9_1 = L9_1.SPHERE
L8_1.shape = L9_1
L8_1.radius = 2
L9_1 = {}
L9_1.x = 160.032
L9_1.y = -0.7
L9_1.z = 166.683
L8_1.pos = L9_1
L9_1 = {}
L9_1.config_id = 26031
L10_1 = RegionShape
L10_1 = L10_1.SPHERE
L9_1.shape = L10_1
L9_1.radius = 2
L10_1 = {}
L10_1.x = 159.822
L10_1.y = -0.673
L10_1.z = 160.332
L9_1.pos = L10_1
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
regions = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 1026004
L6_1.name = "ENTER_REGION_26004"
L7_1 = EventType
L7_1 = L7_1.EVENT_ENTER_REGION
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = ""
L6_1.action = ""
L7_1 = {}
L7_1.config_id = 1026017
L7_1.name = "ENTER_REGION_26017"
L8_1 = EventType
L8_1 = L8_1.EVENT_ENTER_REGION
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_ENTER_REGION_26017"
L7_1.action = "action_EVENT_ENTER_REGION_26017"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1026018
L8_1.name = "ENTER_REGION_26018"
L9_1 = EventType
L9_1 = L9_1.EVENT_ENTER_REGION
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_ENTER_REGION_26018"
L8_1.action = "action_EVENT_ENTER_REGION_26018"
L8_1.trigger_count = 0
L9_1 = {}
L9_1.config_id = 1026031
L9_1.name = "ENTER_REGION_26031"
L10_1 = EventType
L10_1 = L10_1.EVENT_ENTER_REGION
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = "condition_EVENT_ENTER_REGION_26031"
L9_1.action = "action_EVENT_ENTER_REGION_26031"
L9_1.trigger_count = 0
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
triggers = L5_1
L5_1 = {}
variables = L5_1
L5_1 = {}
L5_1.suite = 1
L5_1.end_suite = 0
L5_1.rand_suite = false
init_config = L5_1
L5_1 = {}
L6_1 = {}
L7_1 = {}
L6_1.monsters = L7_1
L7_1 = {}
L8_1 = 26001
L9_1 = 26002
L10_1 = 26003
L11_1 = 26005
L12_1 = 26006
L13_1 = 26007
L14_1 = 26008
L15_1 = 26009
L16_1 = 26010
L17_1 = 26011
L18_1 = 26012
L19_1 = 26013
L20_1 = 26014
L21_1 = 26015
L22_1 = 26016
L23_1 = 26019
L24_1 = 26020
L25_1 = 26021
L26_1 = 26022
L27_1 = 26023
L28_1 = 26024
L29_1 = 26025
L30_1 = 26026
L31_1 = 26027
L32_1 = 26028
L33_1 = 26029
L34_1 = 26030
L35_1 = 26032
L36_1 = 26033
L37_1 = 26034
L38_1 = 26035
L39_1 = 26036
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_1
L7_1[5] = L12_1
L7_1[6] = L13_1
L7_1[7] = L14_1
L7_1[8] = L15_1
L7_1[9] = L16_1
L7_1[10] = L17_1
L7_1[11] = L18_1
L7_1[12] = L19_1
L7_1[13] = L20_1
L7_1[14] = L21_1
L7_1[15] = L22_1
L7_1[16] = L23_1
L7_1[17] = L24_1
L7_1[18] = L25_1
L7_1[19] = L26_1
L7_1[20] = L27_1
L7_1[21] = L28_1
L7_1[22] = L29_1
L7_1[23] = L30_1
L7_1[24] = L31_1
L7_1[25] = L32_1
L7_1[26] = L33_1
L7_1[27] = L34_1
L7_1[28] = L35_1
L7_1[29] = L36_1
L7_1[30] = L37_1
L7_1[31] = L38_1
L7_1[32] = L39_1
L6_1.gadgets = L7_1
L7_1 = {}
L8_1 = 26004
L9_1 = 26017
L10_1 = 26018
L11_1 = 26031
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_1
L6_1.regions = L7_1
L7_1 = {}
L8_1 = "ENTER_REGION_26004"
L9_1 = "ENTER_REGION_26017"
L10_1 = "ENTER_REGION_26018"
L11_1 = "ENTER_REGION_26031"
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_1
L6_1.triggers = L7_1
L6_1.rand_weight = 100
L5_1[1] = L6_1
suites = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  if L2_2 ~= 26017 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetRegionEntityCount
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A1_2.source_eid
  L4_2.region_eid = L5_2
  L5_2 = EntityType
  L5_2 = L5_2.AVATAR
  L4_2.entity_type = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 < 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_26017 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 26021
  L5_2 = GadgetState
  L5_2 = L5_2.GearStart
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_26017 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  if L2_2 ~= 26018 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetRegionEntityCount
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A1_2.source_eid
  L4_2.region_eid = L5_2
  L5_2 = EntityType
  L5_2 = L5_2.AVATAR
  L4_2.entity_type = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 < 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_26018 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 26019
  L5_2 = GadgetState
  L5_2 = L5_2.GearStart
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_26018 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  if L2_2 ~= 26031 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetRegionEntityCount
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A1_2.source_eid
  L4_2.region_eid = L5_2
  L5_2 = EntityType
  L5_2 = L5_2.AVATAR
  L4_2.entity_type = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 < 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_26031 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 26032
  L5_2 = GadgetState
  L5_2 = L5_2.GearStart
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 26033
  L5_2 = GadgetState
  L5_2 = L5_2.GearStart
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 26034
  L5_2 = GadgetState
  L5_2 = L5_2.GearStart
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_26031 = L5_1
L5_1 = require
L6_1 = "V2_2/RogueDungeon_ChestRoom"
L5_1(L6_1)
